package com.useeinfo.oa.modules.wuHanCommon.base.result.enums;

/**
 * 返回状态码.
 *
 * @author GeniusJ
 * @email 975473185@qq.com
 * @date 2017-11-19
 * @time 21:07
 */
public enum ResultEnums_Wh {
    SUCCESS(0,"成功"),
    FAILURE(1,"失败"),
    NOT_FOUND_EXCEPTION(404,"无请求资源"),
    SECURITY_EXCEPTION(403,"无访问权限"),
    NO_LOGIN_MESSAGE(-200,"用户未登录"),
    EXCEPTION(500,"服务器异常");

    private final int code;
    private final String desc;


    ResultEnums_Wh(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }
}
